﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Camc.Quality.Migrations
{
    public partial class add_processroute : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "ProcessTasks",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    Sort = table.Column<int>(nullable: false),
                    Model = table.Column<string>(nullable: true),
                    LotNo = table.Column<string>(nullable: true),
                    ModelName = table.Column<string>(nullable: true),
                    DrawingNo = table.Column<string>(nullable: true),
                    StageSign = table.Column<string>(nullable: true),
                    ProcessStatus = table.Column<int>(nullable: false),
                    Edition = table.Column<string>(nullable: true),
                    UserName = table.Column<string>(nullable: true),
                    ReleaseTime = table.Column<DateTime>(nullable: true),
                    IsUsed = table.Column<int>(nullable: false),
                    Loc = table.Column<string>(nullable: true),
                    NodeText = table.Column<string>(nullable: true),
                    Details = table.Column<string>(nullable: true),
                    Figure = table.Column<string>(nullable: true),
                    Color = table.Column<string>(nullable: true),
                    Size = table.Column<int>(nullable: false),
                    PPtr = table.Column<Guid>(nullable: false),
                    NodeLevel = table.Column<int>(nullable: false),
                    IsLeaf = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ProcessTasks", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "ProcessTasks");
        }
    }
}
